

package com.yungu.swift.system.sys.dao;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.finance.model.param.AdminAccountFlowPageParam;
import com.yungu.swift.system.sys.model.dto.SysAccountPlatformDto;
import com.yungu.swift.system.sys.model.vo.SysPlatformAccountFlowVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface SysAccountPlatformMapper extends IMapper<SysAccountPlatformDto> {

    /**
     * 查询平台账户流水
     *
     * @param flowPageParam
     * @return
     */
    PageList<SysPlatformAccountFlowVo> flowQueryPage(AdminAccountFlowPageParam flowPageParam, PageBounds pageBounds);

    /**
     * 查询平台账户流水 —— 导出
     *
     * @param flowPageParam
     * @return
     */
    List<SysPlatformAccountFlowVo> flowQueryPage(AdminAccountFlowPageParam flowPageParam);

    /**
     * 计算平台净收入
     *
     * @param appid
     * @return
     */
    BigDecimal netIncome(@Param(value = "appid") String appid);
}